//
//  KlineChartPoint.h
//  Futures
//
//  Created by Cheng on 2017/6/23.
//  Copyright © 2017年 Cheng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KlineModel.h"

@interface KlineChartPoint : UIView

@property (nonatomic,retain) KlineModel *klineModel;
// 坐标系
@property (nonatomic,assign) CGFloat kLineWidth;
@property (nonatomic,assign) CGFloat intervalSpace;

@property (nonatomic,assign) CGPoint highestPricepoint;
@property (nonatomic,assign) CGPoint lowestPricepoint;
@property (nonatomic,assign) CGPoint openPricepoint;
@property (nonatomic,assign) CGPoint closePricepoint;
@property (nonatomic,assign) CGPoint volumepoint;
@property (nonatomic,assign) CGPoint MA5point;
@property (nonatomic,assign) CGPoint MA10point;
@property (nonatomic,assign) CGPoint MA20point;
@property (nonatomic,assign) CGPoint MAVOL5point;
@property (nonatomic,assign) CGPoint MAVOL10point;


// stock个数
- (int)numberOfStockInFrame:(CGRect)frame;
// 根据传入的一组stock，返回一组坐标，传入待显示在frame的尺寸
// 返回3个均线坐标:MA5、MA10、MA20
- (NSArray *)pointsFromModels:(NSArray *)models innerMainFrame:(CGRect)mainFrame bottomFrame:(CGRect)bottomFrame;
// K线坐标

// volume成交量坐标
@end
